package com.rightsidetech.commom.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 支付宝、微信返回信息
 * @author wangxiao
 * @date 2020/5/19 20:30
 */
@Data
@ApiModel("支付宝、微信返回信息")
public class TransferModelResp implements Serializable {

    private static final long serialVersionUID = 697347626731886071L;

    public TransferModelResp() {
    }

    public TransferModelResp(boolean isTrans) {
        this.isTrans = isTrans;
    }

    public TransferModelResp(String errorCode, String errorMsg, String backMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.backMsg = backMsg;
    }

    public TransferModelResp(boolean isSuccess, String otherOrderNo, String backMsg) {
        this.isSuccess = isSuccess;
        this.backMsg = backMsg;
        this.otherOrderNo = otherOrderNo;
    }

    //是否成功
    @ApiModelProperty("支付是否成功")
    private boolean isSuccess;

    //错误码
    @ApiModelProperty("错误码")
    private String errorCode;

    //错误描述
    @ApiModelProperty("错误描述")
    private String errorMsg;

    //响应参数
    @ApiModelProperty("响应参数")
    private String backMsg;

    //转账第三方订单号
    @ApiModelProperty("转账第三方订单号")
    private String otherOrderNo;

    //是否转账
    @ApiModelProperty("是否转账")
    private boolean isTrans;

}
